package dbms;

public abstract class Cell<E> implements TypeHolder {

	private E value;

	public Cell(Object e) throws DBException {
		setValue(e);
	}

	public E getValue() {
		return value;
	}

	public void setValue(Object value) throws DBException {
		try {
			this.value = (E) value;
		} catch (Exception e) {
			throw new DBException(DBException.CEL_WRONGINPUT);
		}
	}
}